package xyz.coolcsm.security.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import xyz.coolcsm.security.entity.Blog;
import xyz.coolcsm.security.entity.Favorite;
import xyz.coolcsm.security.entity.PageBean;

import java.util.List;
/**
 * @author 什锦
 * @since 2021-06-1
 */
public interface BlogService extends IService<Blog> {

    public void issueBlog(String username, Blog blog);

    public Page<Blog> pageByCid(int page,int limit,int cid);

    PageBean<Blog> getBlogList(@Param("strList") List<Favorite> strList, int currentPage, int pageSize );
}
